package geektime.spring.hello.hellospring.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import geektime.spring.hello.hellospring.dao.CityDao;
import geektime.spring.hello.hellospring.entity.City;

@Service
public class CityService {
	@Autowired
	private CityDao cityDao;
	
	public List<City> getAll() {
		return cityDao.getAll();
	}

	public void add(City city) {
		cityDao.add(city);
		
	}

}
